part of 'gs_bluetooth_cubit.dart';

@immutable
class GsBluetoothState {
  //验证码数据
  TextEditingController verificationCode;
  //按钮状态 是否可点击
  bool isButtonEnable;  
  //按钮显示文本
  String buttonText; 
  //初始倒计时时间
  int count=5;         
  //重新发送按钮颜色
  Color bottomColor;
  //重新发送按钮边框颜色
  Color bottomBprderColor;
  //发送验证码是按钮颜色
  Color bottonBackColor;
   //倒计时的计时器
  Timer timer;     
  GsBluetoothState init(){
    return GsBluetoothState()
      ..verificationCode = TextEditingController()
      ..isButtonEnable=true
      ..buttonText = '发送验证码'
      ..count = 10
      ..bottomColor = Color(0xffD1E000)
      ..bottomBprderColor=Color(0xffD1E000)
      ..bottonBackColor=Colors.white
      ..timer;
  }
  GsBluetoothState clone(){
    return GsBluetoothState()
      ..verificationCode = verificationCode
      ..isButtonEnable = isButtonEnable
      ..buttonText = buttonText
      ..count = count
      ..bottomColor = bottomColor
      ..bottomBprderColor = bottomBprderColor
      ..bottonBackColor = bottonBackColor
      ..timer;
  }
  
}
